package com.github.spy.apollo.squirrel.spring;

import com.github.spy.apollo.squirrel.dao.OrderMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationContext;

/**
 * module name
 *
 * @author spy
 * @version 1.0 2020/8/20
 * @since 1.0
 */
@Slf4j
public abstract class BaseOrderStateMachine extends AbstractUntypedStateMachine {

    protected OrderMapper orderMapper;

    public BaseOrderStateMachine(ApplicationContext applicationContext) {
        this.orderMapper = applicationContext.getBean(OrderMapper.class);
    }
}